var Page = function(){
    this.init();
};
Page.prototype = {
    params: {
        passport: ''
    },
    init: function(){
        this.initParams();
        this.initEvent();
    },
    initParams: function(){
        this.params.passport = Pub.getCookie('_PASSPORT');
    },
    getData: function(){
        var _this = this;
        var paramsObj = {
            passport: _this.params.passport
        };
        Api.steminformation(paramsObj, function(data){
            var data=data.list;
            $('#systemServer').text(data.systemServer);
            $('#webServer').text(data.webServer);
            $('#phpVersion ').text(data.phpVersion );
            $('#sqlVersion').text(data.sqlVersion);
            $('#safeMode').text(data.safeMode);
            $('#safeGid').text(data.safeGid);
            $('#socketSupport').text(data.socketSupport);
            $('#timeZone').text(data.timeZone);
            $('#gdVersion').text(data.gdVersion);
            $('#zlibSupport').text(data.zlibSupport);
            $('#ipLibraryVersion').text(data.ipLibraryVersion);
            $('#fileUpload').text(data.fileUpload);
            $('#programVersion').text(data.programVersion);
            $('#installationDate').text(data.installationDate);
            $('#codeUtf').text(data.codeUtf);
        });
    },
    initEvent: function(){
        var _this = this;
        _this.getData();
    }
};
var page = new Page();